package com.net.xpay.core.dao;

import com.net.xpay.core.domain.UserAccount;
import com.net.common.annotation.DataShard;
import com.net.common.dao.VersionedMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataShard("")
@Repository
public interface UserAccountMapper extends VersionedMapper<Long, UserAccount> {
    UserAccount getByIdWithLock(@Param("id") Long id);

    List<UserAccount> findByIds(@Param("ids") List<Long> ids);
}
